package com.hjs.pacloudservice.remote;

import com.hjs.pacloudservice.pojo.File;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @auther hanjinsong
 * @create 2019-08-21 14:36
 */
@FeignClient(name = "pacloud-dao")
public interface FileUploadRemote {

    @RequestMapping(value = "selectById", method = RequestMethod.GET)
    File selectById(@RequestParam("id") Integer id);

    @RequestMapping(value = "insert", method = RequestMethod.GET)
    Integer insert(@RequestParam("file") File file);

    @RequestMapping(value = "selectAllName", method = RequestMethod.GET)
    List<String> selectAllName();


}
